
cmake_minimum_required(VERSION 3.16.0)

project(EVENT VERSION 0.1)

set(CXX_STANDARD 17)
set(CXX_STANDARD_REQUIRED on)

add_subdirectory(MayEvent)

aux_source_directory(example SRCS)

if (CMAKE_SYSTEM_NAME MATCHES "Windows")
    set(MAY_EVENT_WINDOWS 1)
else()
    set(MAY_EVENT_WINDOWS 0)
endif()

configure_file(example/config.h.in config.h)

include_directories(${CMAKE_BINARY_DIR})
include_directories(MayEvent/include)

add_executable(test ${SRCS})
target_link_libraries(test MayEvent)
